package com.carkeeper.user.feign;
import com.carkeeper.common.utils.Result;
import com.carkeeper.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "user")
public interface UserFeign {
    //根据车主id查询车主信息
    @GetMapping("user/findById/{id}")
    public Result<User> findById(@PathVariable("id") Long id);
}
